package paper.graph;
import java.awt.Color;

/* To derive a custom Edge class you MUST override makeDefault and
   copy with relevant versions. Very bad things may happen if you
   don't.
*/
public class Edge //implements PaperGraph.EdgeBuilder<Edge>
{
    public String keyA, keyB;
    public Color col;

    public Edge( String a, String b )
    {
        keyA = a;
        keyB = b;
        col = Color.BLACK;
    }

    public Edge makeDefault(String a, String b)
    {
        System.out.println("Edge::makeDefault " + a + "," + b);
        return new Edge(a,b);
    }
    public Edge copy()
    {
        Edge y = new Edge(keyA,keyB);
        y.col = col;
        return y;
    }

}
